package com.xujl.mvcbind.bean;

import java.util.List;
import java.util.Objects;

public class FourMultiEntity implements ProviderMultiEntity {
    private List<ThreeMultiEntity> mList;

    public FourMultiEntity (List<ThreeMultiEntity> list) {
        mList = list;
    }

    public List<ThreeMultiEntity> getList () {
        return mList;
    }

    public void setList (List<ThreeMultiEntity> list) {
        mList = list;
    }

    @Override
    public int getProviderType () {
        return TYPE_FOUR;
    }

    @Override
    public boolean equals (Object o) {
        if (this == o) return true;
        if (!(o instanceof FourMultiEntity)) return false;
        FourMultiEntity that = (FourMultiEntity) o;
        return getList().equals(that.getList());
    }

    @Override
    public int hashCode () {
        return Objects.hash(getList());
    }
}
